.container {
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 状态栏样式 */
.statusBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 500;
}

.statusLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time {
  font-weight: 600;
}

.signalIcons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.signalA {
  font-size: 12px;
  font-weight: bold;
}

.wifiIcon {
  font-size: 12px;
}

.batteryIcon {
  font-size: 12px;
}

/* 搜索区域 */
.searchSection {
  flex: 1;
  padding: 16px;
  background-color: #fff;
}

.searchBar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.backButton {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.backButton:hover {
  background-color: #f0f0f0;
}

.searchInputContainer {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  border-radius: 20px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
}

.searchIcon {
  font-size: 16px;
  margin-right: 8px;
}

.searchInput {
  border: none;
  background: none;
  outline: none;
  padding: 12px 0;
  font-size: 16px;
  color: #333;
}

.searchInput::placeholder {
  color: #999;
}

.clearButton {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.clearButton:hover {
  background-color: #e0e0e0;
}

.searchButton {
  background-color: #007AFF;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.searchButton:hover {
  background-color: #0056CC;
}

/* 最近搜索样式 */
.recentSearches {
  margin-top: 8px;
}

.recentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.recentTitle {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.clearRecentButton {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.clearRecentButton:hover {
  background-color: #f0f0f0;
}

.recentList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recentItem {
  padding: 12px 16px;
  background-color: #f8f8f8;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
}

.recentItem:hover {
  background-color: #e8e8e8;
}

/* 搜索结果样式 */
.searchResults {
  margin-top: 16px;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.errorMessage {
  background-color: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  border-left: 4px solid #c33;
}

.noResults {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
}

.resultsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.resultsTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.resultsCount {
  font-size: 14px;
  color: #666;
}

.resultsList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resultItem {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.resultItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.resultTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.resultContent {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resultLink {
  color: #007AFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.resultLink:hover {
  color: #0056CC;
  text-decoration: underline;
}

.loadMoreButton {
  width: 100%;
  background-color: #f8f8f8;
  color: #333;
  border: 1px solid #e0e0e0;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.loadMoreButton:hover {
  background-color: #e8e8e8;
  border-color: #ccc;
}

.loadingMore {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

/* 综合搜索结果样式 */
.comprehensiveResults {
  margin-top: 16px;
}

/* 医生卡片样式 */
.doctorCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doctorCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.doctorAvatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.doctorAvatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.doctorInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctorHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doctorName {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.doctorTitle {
  font-size: 14px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.hospitalLevel {
  font-size: 12px;
  color: #fff;
  background-color: #52c41a;
  padding: 2px 6px;
  border-radius: 4px;
}

.doctorDepartment {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.consultationMethods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consultationTag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.doctorSpecialties {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.doctorStats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.statItem {
  font-size: 14px;
  color: #666;
}

.highlight {
  color: #ff6b35;
  font-weight: 600;
}

.doctorFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.price {
  font-size: 16px;
  color: #333;
}

.priceAmount {
  color: #ff6b35;
  font-weight: 600;
  font-size: 18px;
}

.consultButton {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.consultButton:hover {
  background-color: #40a9ff;
}

/* 搜索建议样式 */
.searchSuggestions {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  overflow: hidden;
}

.suggestionsHeader {
  padding: 12px 16px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.suggestionsTitle {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.suggestionsList {
  max-height: 200px;
  overflow-y: auto;
}

.suggestionItem {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #333;
}

.suggestionItem:hover {
  background-color: #f5f5f5;
}

.suggestionItem:last-child {
  border-bottom: none;
}

/* 热门搜索样式 */
.hotSearches {
  margin-top: 16px;
}

.hotHeader {
  margin-bottom: 12px;
}

.hotTitle {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.hotList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hotItem {
  background-color: #f0f0f0;
  color: #666;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.hotItem:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* 分类结果样式 */
.categoryResults {
  margin-top: 16px;
}

/* 文章卡片样式 */
.articleList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.articleCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.articleCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.articleTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.articleSummary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articleMeta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.articleAuthor,
.articleDate,
.articleViews {
  display: flex;
  align-items: center;
}

/* 医院卡片样式 */
.hospitalList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hospitalCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 5px;
  cursor: pointer;
}

.hospitalCard:hover {
  transform: translateY(-2px);
}

.hospitalImage {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.hospitalImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.hospitalInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hospitalName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.hospitalLevel {
  font-size: 14px;
  color: #52c41a;
  margin: 0 0 4px 0;
}

.hospitalAddress {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
}

.hospitalMeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.hospitalPhone,
.hospitalRating,
.hospitalDistance {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hospitalDepartments {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.departmentsLabel {
  font-weight: 500;
}

.departmentsList {
  color: #999;
}

.hospitalServices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.serviceTag {
  background-color: #f0f0f0;
  color: #666;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.hospitalActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hospitalButton {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hospitalButton:hover {
  background-color: #40a9ff;
}

.hospitalStatus {
  display: flex;
  align-items: center;
}

.statusOpen {
  color: #52c41a;
  font-size: 11px;
  font-weight: 500;
}

.statusClosed {
  color: #ff4d4f;
  font-size: 11px;
  font-weight: 500;
}

/* 药品卡片样式 */
.medicineList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.medicineCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.medicineCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.medicineImage {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.medicineImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
}

.medicineInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.medicineName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.medicineSpec {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.medicineManufacturer {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.medicinePrice {
  font-size: 16px;
  color: #333;
  margin-top: 8px;
}

.medicineButton {
  background-color: #ff6b35;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-end;
}

.medicineButton:hover {
  background-color: #ff8c5a;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .searchSection {
    padding: 12px;
  }
  
  .searchBar {
    gap: 8px;
  }
  
  .searchButton {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .searchInput {
    font-size: 14px;
  }
  
  .resultItem {
    padding: 12px;
  }
  
  .resultTitle {
    font-size: 15px;
  }
  
  .resultContent {
    font-size: 13px;
  }
  
  .doctorCard {
    padding: 12px;
    gap: 10px;
  }
  
  .doctorAvatar {
    width: 60px;
    height: 60px;
  }
  
  .doctorName {
    font-size: 16px;
  }
  
  .doctorTitle {
    font-size: 12px;
  }
  
  .doctorStats {
    gap: 12px;
  }
  
  .statItem {
    font-size: 13px;
  }
  
  .priceAmount {
    font-size: 16px;
  }
  
  .consultButton {
    padding: 6px 12px;
    font-size: 13px;
  }
}
